import request from '@/utils/request'

// 查询页面轮播图列表
export function listImgswiper(query) {
  return request({
    url: '/manage/imgswiper/list',
    method: 'get',
    params: query
  })
}

// 查询页面轮播图详细
export function getImgswiper(imgId) {
  return request({
    url: '/manage/imgswiper/' + imgId,
    method: 'get'
  })
}

// 新增页面轮播图
export function addImgswiper(data) {
  return request({
    url: '/manage/imgswiper',
    method: 'post',
    data: data
  })
}

// 修改页面轮播图
export function updateImgswiper(data) {
  return request({
    url: '/manage/imgswiper',
    method: 'put',
    data: data
  })
}

// 删除页面轮播图
export function delImgswiper(imgId) {
  return request({
    url: '/manage/imgswiper/' + imgId,
    method: 'delete'
  })
}
